<#setting number_format="#.##"/>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>财务结算表</title>
    <style>
        body {
            font-family: SimSun, Arial Unicode MS, Lucida Sans Unicode, Arial, verdana, arial, helvetica, sans-serif;
        }

        .printContent {
            margin: 0px;
            padding: 0px;
            font-size: 16px;
        }

        .printContent p {
            margin: 0px;
            padding: 0px;
            text-align: left;
            text-indent: 2em;
            line-height: 24px;
            width: 95%;
            margin-left: 20px;
        }

        .printContent .printTitle {
            text-indent: 0em;
            font-size: 22px;
            text-align: center;
            font-weight: bold;
            height: 36px;
        }

        .border {
            text-align: center;
            padding-left: 10px;
            padding-right: 10px;
            border-bottom: 1px solid #000000;
        }

        .borderBlock500 {
            text-align: center;
            width: 500px;
            display: inline-block;
            border-bottom: 1px solid #000000;
        }

        .paddingLeft {
            padding-left: 300px;
        }

        @page {
            margin: 5mm 10mm 0mm 10mm;
        }

        .pageBreak {
            page-break-before: always
        }

        .table_border_top_hidden {
            border-top: hidden;
        }

        .table_border_bottom_hidden {
            border-bottom: hidden;
            text-overflow: inherit;
            overflow: visible;
            height: auto;
            white-space: normal;
        }

        table {
            margin: auto;
            width: 95%;
            border-collapse: collapse;
            border-top: 2px solid #000000;
            border-left: 2px solid #000000;
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            -fs-table-paginate: paginate;
            border-spacing: 0;
        }

        th, td {
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            font-size: 16px;
            margin-left: 5px;
            height: 25px;
            page-break-inside: avoid;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="printContent">
    <#if (contract.azType?? && contract.azType?contains("房屋安置"))>
        <#if contract.financeCheckStatus ?? && contract.financeCheckStatus != 2><p class="printTitle">【财务未审核，此单据仅供预览】</p></#if>
        <p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}选房安置财务结算表（Ⅰ）</p>
        <p class="printTitle">
            （住宅、车位）
        </p>
        <p style="text-align: right;margin-top: -20px">单位：元、平方米</p>
        <table class="table_border_bottom_hidden">
            <tr>
                <td colspan="2" style="width: 25%">被征收人</td>
                <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.name)}</td>
                <td colspan="2" style="width: 25%">选房号</td>
                <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
            </tr>

            <tr>
                <td colspan="2" style="width: 25%">身份证号码</td>
                <td colspan="8" style="width: 25%">${strUtils.getNotNull(contract.idCard)}</td>
            </tr>
            <tr>
                <td colspan="2">图编号</td>
                <td colspan="2" style="word-wrap:break-word;">${strUtils.getNotNull(contract.drawingCode)}</td>
                <td colspan="2" style="width: 25%">协议编号</td>
                <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.contractCode)}</td>
            </tr>
            <#if hbMemo?? && (hbMemo?length > 0) >
            <tr>
                <td colspan="8" style="font-size: 14px">
                    ${strUtils.getNotNull(hbMemo)}
                </td>
            </tr>
        </#if>

        <tr>
            <td colspan="8">一、扩购或安置不足面积情况（“+”为扩购 “-”为减少或安置不足）</td>
        </tr>
        <tr>
            <td colspan="2">扩购<br/>或安置不足面积</td>
            <td colspan="2">合并安置<br/>产权调换面积</td>
            <td colspan="2">实际扩购<br/>或安置不足面积</td>
            <td colspan="2">备    注</td>
        </tr>
        <tr>
            <td colspan="2">${bigUtils.getSum(contract.adjustAreaTotal,contract.zzResultArea)}</td>
            <td colspan="2">${bigUtils.getNotNullStr(contract.adjustAreaTotal)}</td>
            <td colspan="2">${bigUtils.getNotNullStr(contract.zzResultArea)}</td>
            <td colspan="2"></td>
        </tr>
        </table>
        <table class="table_border_top_hidden table_border_bottom_hidden">
            <tr>
                <td colspan="8">二、产权调换等面积安置应缴金额</td>
            </tr>
            <tr>
                <td style="width: 50%">等面积安置应缴款</td>
                <td style="width: 50%">${bigUtils.getNotNullStr(contract.resultMoney)}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden table_border_bottom_hidden">
            <tr>
                <td colspan="5">三、选房结果与产权调换面积比扩购或减少安置面积应补金额</td>
            </tr>
            <tr>
                <td style="width: 25%">类别</td>
                <td style="width: 12%">面积</td>
                <td style="width: 13%">单价</td>
                <td style="width: 25%">金额</td>
                <td style="width: 25%">备注</td>

            </tr>
            <#if overHouseMoneyMap??>
            <#assign overHouseMoneyLength = overHouseMoneyMap?size/>
            <#list overHouseMoneyMap? keys as key>
            <#assign itemMap = overHouseMoneyMap[key]/>
            <tr>
                <td>${key}</td>
                <td>${itemMap["area"]}</td>
                <td>${itemMap["price"]}元/㎡</td>
                <td>${itemMap["money"]}</td>
                <td> </td>
            </tr>
        </#list>
        </#if>
        <#if (parameter.xfbcPrice?? && parameter.xfbcPrice>0)>
            <tr>
                <td>安置不足部分</td>
                <td>
                    <#if contract.isJiSuan ?? && contract.isJiSuan ==1>
                    <#if bigUtils.getNotNull(contract.zzResultArea) lt 0>
                    ${bigUtils.getNotNullStr(bigUtils.getBigAndBigSub(0,contract.zzResultArea))}
                </#if>
            </#if>
            </td>
            <td>${bigUtils.getNotNullStr(parameter.xfbcPrice)}元/㎡</td>
            <td>
                <#if contract.isJiSuan ?? && contract.isJiSuan ==1>
                <#if bigUtils.getNotNull(contract.houseMoney) gt 0>
                ${bigUtils.getNotNullStr(contract.houseMoney)}
            </#if>
            </#if>
            </td>
            <td></td>
            </tr>
        </#if>
        <tr>
            <td colspan="3">小计</td>
            <td colspan="1">${bigUtils.getNotNullStr(bigUtils.getSum(contract.houseMoney))}</td>
            <td colspan="1"></td>

        </tr>
        </table>
        <table class="table_border_top_hidden">
            <tr>
                <td colspan="4">四、财务总结算</td>
            </tr>
            <tr>
                <td style="width: 25%;">1.临时安置补偿费</td>
                <td style="width: 25%;">2.扩购或安置不足<br/>应补金额</td>
                <td style="width: 25%;">3.车位需缴纳金额</td>
                <td style="width: 25%;">4.等面积安置应缴款</td>
            </tr>
            <tr>
                <td>${bigUtils.getNotNullStr(contract.zzgdMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.houseMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.carLotMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.resultMoney)}</td>
            </tr>
            <tr>
                <td colspan="2">合计(1+2+3+4)</td>
                <td colspan="2">${bigUtils.getNotNullStr(contract.houseOneMoney)}</td>
            </tr>
        </table>
        <p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被征收人应缴纳金额、“+”为被征收人可领取金额。</p>
        <!--合并备注-->
        <p style="text-indent: 0em;font-size: 14px">${adjustAreaMemo}</p>
        <#if adjustAreaMemo ?? && adjustAreaMemo !="">
            <p style="text-indent: 0em;font-size: 14px">注：原需安置面积${bigUtils.getNotNullStr(contract.ysHouseAreaTotal)}，合并面积${bigUtils.getNotNull(contract.adjustAreaTotal)}，当前需安置面积${bigUtils.getSum(contract.ysHouseAreaTotal,contract.adjustAreaTotal)};</p>
        </#if>        <!--协议备注-->
        <#if contract.memo ?? && contract.memo !="">
            <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.memo)}</p>
        </#if>
        <!--财务备注-->
        <#if contract.financeMemo ?? && contract.financeMemo !="">
            <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.financeMemo)}。</p>
        </#if>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被征收人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：</p>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
            &#160;年&#160;月&#160;日
        </p>
    </#if>
</div>

<!--商业用房-->
<#if (contract.azType?? && contract.azType?contains("商业安置"))>
    <div style="page-break-after: always;"></div>
    <div class="printContent">
        <#if contract.financeCheckStatus ?? && contract.financeCheckStatus !=2 >
            <p class="printTitle">【财务未审核，此单据仅供预览】</p>
        </#if>
        <p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}选房安置财务结算表（Ⅰ）</p>
        <p class="printTitle">（商业用房）</p>
        <p style="text-align: right;">单位：元、平方米</p>
        <table class="table_border_bottom_hidden">
            <tr>
                <td colspan="2" style="width: 24%">被征收人</td>
                <td colspan="2" style="width: 22%">${strUtils.getNotNull(contract.name)}</td>
                <td colspan="2" style="width: 18%">选房号</td>
                <td colspan="2" style="width: 36%">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
            </tr>
            <tr>
                <td colspan="2">身份证号码</td>
                <td colspan="8">${strUtils.getNotNull(contract.idCard)}</td>
            </tr>
            <tr>
                <td colspan="2">图编号</td>
                <td colspan="2" style="word-wrap:break-word;">${strUtils.getNotNull(contract.drawingCode)}</td>
                <td colspan="2" >协议编号</td>
                <td colspan="2" >${strUtils.getNotNull(contract.contractCode)}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden table_border_bottom_hidden">
            <tr>
                <td colspan="5">一、选择安置房（商业）面积与选择产权调换面积比【正数扩购、负数回购】</td>
            </tr>
            <tr>
                <td width="24%">房屋用途</td>
                <td width="22%">安置路段</td>
                <td width="18%">产权<br/>调换面积</td>
                <td width="18%">面积</td>
                <td width="18%">扩购或<br/>安置不足面积</td>
            </tr>
            <tr>
                <td>商业店面(住改商)</td>
                <td>${strUtils.getNotNull(contract.oneFloorSyName)}</td>
                <td>${bigUtils.getNotNullStr(contract.oneFloorSyAzShopArea)}</td>
                <td>${bigUtils.getNotNullStr(contract.oneFlorSyAreaTotal)}</td>
                <td>${bigUtils.getNotNullStr(contract.syDmAzSyArea)}</td>
            </tr>
            <tr>
                <td>二层商业</td>
                <td>${strUtils.getNotNull(contract.twoFloorSyName)}</td>
                <td>${bigUtils.getNotNullStr(contract.twoFloorSyAzShopArea)}</td>
                <td>${bigUtils.getNotNullStr(contract.syTwoFloorAzArea)}</td>
                <td>${bigUtils.getNotNullStr(contract.syTwoFloorAzSyArea)}</td>
            </tr>
            <tr>
                <td>商业商场(经营场所)</td>
                <td>${strUtils.getNotNull(contract.syScName)}</td>
                <td>${bigUtils.getNotNullStr(contract.syScAzShopArea)}</td>
                <td>${bigUtils.getNotNullStr(contract.syScAzArea)}</td>
                <td>${bigUtils.getNotNullStr(contract.syScAzSyArea)}</td>
            </tr>
            <tr>
                <td>写字楼</td>
                <td>${strUtils.getNotNull(contract.syXzlName)}</td>
                <td>${bigUtils.getNotNullStr(contract.syXzlShopArea)}</td>
                <td>${bigUtils.getNotNullStr(contract.syXzlAzArea)}</td>
                <td>${bigUtils.getNotNullStr(contract.syXzlAzSyArea)}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden table_border_bottom_hidden">
            <tr>
                <td colspan="8">二、产权调换等面积安置应缴金额</td>
            </tr>
            <tr>
                <td style="width: 46%">产权调换等面积安置应缴款</td>
                <td style="width: 54%">${bigUtils.getNotNullStr(contract.resultMoney)}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden table_border_bottom_hidden">
            <tr>
                <td colspan="6">三、选房结果与产权调换面积比扩购或减少安置面积应补金额</td>
            </tr>
            <tr>
                <td style="width: 24%">房屋信息</td>
                <td style="width: 22%">扩购或安置不足</td>
                <td style="width: 13%">面积</td>
                <td style="width: 13%">单价</td>
                <td style="width: 14%">金额</td>
                <td style="width: 14%">原协议安置面积</td>
            </tr>
            <#if syKgInfoList??>
                <#list syKgInfoList as syKgInfo>
                    <tr>
                        <td>${strUtils.getNotNull(syKgInfo.buildHouseInfo)}</td>
                        <td>${strUtils.getNotNull(syKgInfo.kgName)}</td>
                        <td>${bigUtils.getNotNullStr(syKgInfo.area)}</td>
                        <td>${bigUtils.getNotNullStr(syKgInfo.price)}</td>
                        <td>${bigUtils.getNotNullStr(syKgInfo.money)}</td>
                        <td>${strUtils.getNotNull(syKgInfo.zsAzArea)}</td>
                    </tr>
                </#list>
            </#if>
            <tr>
                <td colspan="4">小计</td>
                <td colspan="1">${bigUtils.getNotNullStr(bigUtils.getSum(contract.houseMoney))}</td>
                <td></td>
            </tr>
        </table>
        <table class="table_border_top_hidden">
            <tr>
                <td colspan="5">四、财务总结算</td>
            </tr>
            <tr>
                <td style="width: 24%;">1.停产停业补偿</td>
                <td style="width: 22%;">2.扩购或安置不足应补金额</td>
                <td style="width: 18%;">3.等面积安置应缴款</td>
                <td style="width: 18%;">4.开间≤3.3米应缴款</td>
                <td style="width: 18%;">5.其他金额</td>
            </tr>
            <tr>
                <td>${bigUtils.getNotNullStr(contract.zxgdMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.houseMoney)}</td>
                <td>${bigUtils.getNotNullStr(contract.resultMoney)}</td>
                <td>
                    <#if contract.parameter??>
                    ${bigUtils.getNotNullStr(contract.parameter.kjYjMoney)}
                    </#if>
                </td>
                <td>
                    <#if contract.parameter??>
                    ${bigUtils.getNotNullStr(contract.parameter.kqjYjMoney)}
                    </#if>
                </td>
            </tr>
            <tr>
                <td colspan="2">合计(1+2+3+4+5)</td>
                <td colspan="3">${bigUtils.getNotNullStr(contract.houseOneMoney)}</td>
            </tr>
        </table>
        <p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被征收人应缴纳金额、“+”为被征收人可领取金额。</p>
        <!--合并备注-->
        <p style="text-indent: 0em;font-size: 14px">${adjustAreaMemo}</p>
        <#if adjustAreaMemo ?? && adjustAreaMemo !="">
            <p style="text-indent: 0em;font-size: 14px">注：原需安置面积${bigUtils.getNotNullStr(contract.ysHouseAreaTotal)}，合并面积${bigUtils.getNotNull(contract.adjustAreaTotal)}，当前需安置面积${bigUtils.getSum(contract.ysHouseAreaTotal,contract.adjustAreaTotal)};</p>
        </#if>
        <!--协议备注-->
        <#if contract.memo ?? && contract.memo !="">
        <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.memo)}</p>
        </#if>
        <!--财务备注-->
        <#if contract.financeMemo ?? && contract.financeMemo !="">
        <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.financeMemo)}。</p>
        </#if>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被征收人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：</p>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
            &#160;年&#160;月&#160;日
        </p>
    </div>
</#if>

<!--公维金缴纳-->
    <div style="page-break-after: always;"></div>
    <div class="printContent">
        <p class="printTitle"><#if contract.financeCheckStatus ?? && contract.financeCheckStatus != 2><p class="printTitle">【财务未审核，此单据仅供预览】</p></#if></p>
        <p class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}</p>
        <p class="printTitle">选房财务结算表（Ⅱ）</p>
        <p style="text-align: right;">单位：元、平方米</p>
        <table class="table_border_bottom_hidden">
            <tr>
                <td colspan="2" style="width: 25%">被征收人</td>
                <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.name)}</td>
                <td colspan="2" style="width: 25%">选房号</td>
                <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.chooseHouseNum)}</td>
            </tr>

            <tr>
                <td colspan="2" style="width: 25%">身份证号码</td>
                <td colspan="8" style="width: 25%">${strUtils.getNotNull(contract.idCard)}</td>
            </tr>
            <tr>
                <td colspan="2">图编号</td>
                <td colspan="2" style="word-wrap:break-word;">${strUtils.getNotNull(contract.drawingCode)}</td>
                <td colspan="2" style="width: 25%">协议编号</td>
                <td colspan="2" style="width: 25%">${strUtils.getNotNull(contract.contractCode)}</td>
            </tr>
        </table>
        <table class="table_border_top_hidden">
            <tr>
                <td colspan="4">公共维修金应缴款项</td>
            </tr>
            <tr>
                <td style="width: 25%">房屋类型</td>
                <td style="width: 25%">建筑面积</td>
                <td style="width: 25%">缴交标准</td>
                <td style="width: 25%">缴纳金额</td>
            </tr>
            <#if zsProjectId ?? && zsProjectId gt 0>
                <#if houseGwjMap ??>
                        <#list houseGwjMap as map>
                            <tr>
                                <td>住宅</td>
                                <td>${(map.buildArea)!}</td>
                                <td>${(map.gwjPrice)!}元/㎡</td>
                                <td>-${(map.gwjMoney)!}</td>
                            </tr>
                        </#list>
                    <#else/>
                        <tr>
                            <td>住宅</td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                </#if>
            </#if>
            <tr>
                <td>车位(非人防)</td>
                <td>${bigUtils.getNotNullStr(contract.catLotNoRfArea)}</td>
                <td>
                    <#if contract.parameter??>
                        ${bigUtils.getNotNullStr(parameter.cwbcwxPrice)}元/㎡
                    </#if>
                </td>
                <td>${bigUtils.getNotNullStr(contract.cwwxMoney)}</td>
            </tr>
            <tr>
                <td>车位(人防)</td>
                <td>${bigUtils.getNotNullStr(contract.carLotRfArea)}</td>
                <td>0元/㎡</td>
                <td>0</td>
            </tr>
            <#if zsProjectId ?? && zsProjectId gt 0>
                <#if shopHouseGwjMap ??>
                        <#list shopHouseGwjMap as map>
                            <tr>
                                <td>商业</td>
                                <td>${(map.buildArea)!}</td>
                                <td>${(map.gwjPrice)!}元/㎡</td>
                                <td>${(map.gwjMoney)!}</td>
                            </tr>
                        </#list>
                    <#else/>
                        <tr>
                            <td>商业</td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                </#if>
            </#if>
            <tr>
                <td colspan="3">合计</td>
                <td>${bigUtils.getNotNullStr(contract.wxMoneyTotal)}</td>
            </tr>
        </table>
        <p style="text-indent: 0em;font-size: 14px">注:数据中“-”为被征收人应缴纳金额、“+”为被征收人可领取金额。</p>
        <!--合并备注-->
        <p style="text-indent: 0em;font-size: 14px">${adjustAreaMemo}</p>
        <#if adjustAreaMemo ?? && adjustAreaMemo !="">
            <p style="text-indent: 0em;font-size: 14px">注：原需安置面积${bigUtils.getNotNullStr(contract.ysHouseAreaTotal)}，合并面积${bigUtils.getNotNull(contract.adjustAreaTotal)}，当前需安置面积${bigUtils.getSum(contract.ysHouseAreaTotal,contract.adjustAreaTotal)};</p>
        </#if>

        <!--协议备注-->
        <#if contract.memo ?? && contract.memo !="">
            <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.memo)}</p>
        </#if>
        <!--财务备注-->
        <#if contract.financeMemo ?? && contract.financeMemo !="">
            <p style="text-indent: 0em;font-size: 14px">注:${strUtils.getNotNull(contract.financeMemo)}。</p>
        </#if>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 20px">被征收人：&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;财务组：</p>
        <p style="font-size: 18px;  text-indent: 0em;margin-top: 40px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
            &#160;年&#160;月&#160;日
        </p>
    </div>
</body>
</html>